﻿<table>
<tr>
	<td colspan="3">
		<h1><?php echo $model->title; ?></h1>
		<?php 
		// $this->widget('bootstrap.widgets.TbBreadcrumbs', array(
		// 'links'=>array('Library'=>'#', 'Data'),
		// )); 
		?>
	</td>
</tr>
<tr><td colspan="3"><img src="css/von1.png"></td></tr>
<tr>
	<td>
		<?php 
			echo $model->from;
		?>
	</td>
	<td>
		<?php 
			echo $model->from;
		?>
	</td>
	<td width=140px>
		<?php 
			if (!Yii::app()->user->isGuest) {
			
				if (EventsController::actionIsEventAtt($model->id) == 0)
				{
					echo CHtml::link('Résztveszek',array('AttendEvent','id'=>$model->id));
				}
				else
				{
					echo CHtml::link('Mégsem megyek',array('UnsubEvent','id'=>$model->id));
				}
			}
			?>		
	</td>
</tr>
<tr><td colspan="3"><img src="css/von1.png"></td></tr>
<tr><td colspan="2">
<?php 
	//description
	echo $model->description; 
?>
</td></tr>

</table>

<table class="view">
	<tr><td colspan="1"><img src="css/von1.png"></td></tr>
	<tr>
<?php

		echo "</br></br><b>Résztvevők:</b>";
		$this->widget('zii.widgets.CListView', array(
		'dataProvider'=>$dataProvider,
		'itemView'=>'_viewUsers',
		'summaryText' => '',
		)); 

		//tabulator
		// $this->widget('zii.widgets.CListView', array(
		// 'dataProvider'=>$dataprovider,
		// 'itemView'=>'_view_ctypes',
		// 'summaryText' => '',
		// )); 
?>
	</tr>
		<tr><td colspan="1"><img src="css/von1.png"></td>
	</tr>
	<tr><td colspan="1">
		<?php
			//comments
			// $this->widget('comments.widgets.ECommentsListWidget', array(
				// 'model' => $model,
			// ));
			//$this->widget('application.extensions.WSocialButton', array('style'=>'box'));
			?>
	</td></tr>
</table>
